package net.sudot.chess.business.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 聊天信息
 *
 * @author tangjialin on 2018-03-11.
 */
@Getter
@Setter
@Accessors(chain = true)
public class ChatMessageDTO implements Serializable {
    /** 消息内容 */
    private String content;
    /** 消息发送者主键 */
    private Long customerId;
    /** 消息发送者昵称 */
    private String nickname;
    /** 消息发送者头像 */
    private String head;

    public ChatMessageDTO() {
    }

    public ChatMessageDTO(String content, Long customerId, String nickname, String head) {
        this.content = content;
        this.customerId = customerId;
        this.nickname = nickname;
        this.head = head;
    }

}
